package com.vegetable.modules.service.outbound;

import com.baomidou.mybatisplus.extension.service.IService;
import com.vegetable.common.utils.PageUtils;
import com.vegetable.common.utils.R;
import com.vegetable.modules.entity.outbound.SalesProxy;

import java.util.Map;

/**
 * <p>
 * 代销发货 服务类
 * </p>
 *
 * @author wangruijie
 * @since 2024-04-02
 */
public interface ISalesProxyService extends IService<SalesProxy> {

    /**
     * 代销发货列表查询
     * @param params
     * @return
     */
    PageUtils queryPage(Map<String, Object> params);

    /**
     * 详情代销发货
     * @param id null
     * @return R
     * @author wrj
     * @since 2024/3/7 下午4:35
     */
    R detailSalesProxy(Long id);

    /**
     * 新增代销发货
     * @param salesProxy null
     * @return R
     * @author wrj
     * @since 2024/3/7 下午4:35
     */
    R saveSalesProxy(SalesProxy salesProxy) throws Exception;

    /**
     * 提交代销发货
     * @param salesProxy null
     * @return R
     * @author wrj
     * @since 2024/3/7 下午4:35
     */
    R submitSalesProxy(SalesProxy salesProxy) throws Exception;

    /**
     * 删除代销发货
     * @param id null
     * @return R
     * @author wrj
     * @since 2024/3/7 下午4:35
     */
    R deleteSalesProxy(Long id) throws Exception;
}
